package com.github.pojo;

import lombok.Data;

@Data
public class WsBaseResult {
    protected long request_id;
    protected int msg_type;

    public WsBaseResult() {}

    public WsBaseResult(long request_id, int msg_type) {
        this.request_id = request_id;
        this.msg_type = msg_type;
    }

    public static WsBaseResult pong() {
        return new WsBaseResult(System.currentTimeMillis(), 2);
    }

    public static WsBaseResult kick() {
        return new WsBaseResult(System.currentTimeMillis(), 6);
    }
}
